<?
require_once("admin/dbconnect.php");

?>
<html>
<head>
<title>View Images - RentBazaar</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="css/rentbaazar.css">
<link href="style-table.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="0" topmargin="10" marginheight="0" marginwidth="0">
<table width="1000" cellpadding="0" cellspacing="0" border="0" align="center" class="orange-table">
	<tr>
		<td height="10"></td>
	</tr>
	<tr>
		<td><img src="images/eparinay_logo.jpg" width="178" height="70"></td>
	</tr>
	<tr>
		<td height="10"><?
		if($_REQUEST['cid']){
				$st="SELECT customer.customer_id, customer.name, customer.surname, customer.father_name, customer.address, customer.image_1, customer.b_date, customer.age, customer.gender, community.community, nativeplace.nativeplace, customer.other_city, occupation.occupation, customer.email, customer.tel, customer.mob, customer.marital_status, country.country, state.state, customer.home_status, customer.feetInch, customer.feetCm, customer.weightKg, customer.weightlbs, customer.bodytype, customer.complexion, degree.degree, stream.stream, customer.other_education, customer.income, customer.curency, customer.incometype, customer.aboutfamily, customer.expectation, customer.reference, customer.father_info, customer.brother_info, customer.sister_info, customer.family_member, customer.earning_member, DATE_FORMAT(customer.online, '%d-%M-%Y') as dton
FROM ((((((customer INNER JOIN nativeplace ON customer.city = nativeplace.nativeplace_id) INNER JOIN country ON customer.country = country.country_id) INNER JOIN state ON customer.state = state.state_id) INNER JOIN degree ON customer.degree = degree.degree_id) INNER JOIN stream ON customer.stream = stream.stream_id) INNER JOIN community ON customer.community = community.community_id) INNER JOIN occupation ON customer.occupation = occupation.occupation_id where customer.customer_id=".$_REQUEST['cid'];
				$rc = mysql_query($st) or die(mysql_error());
				if($row=mysql_fetch_array($rc)){
		?></td>
	</tr>
	<tr>
		<td class="top-bar" height="1"></td>
	</tr>
	<tr>
		<td height="24"><a href="javascript: self.close();">Close this window </a></td>
	</tr>
	<tr>
		<td height="1" class="top-bar"></td>
	</tr>
	
	<tr>
		<td valign="top">
			<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
				<tr>
					<td width="1" height="400" class="top-bar"></td>
					<td width="850" valign="top"><table width="100%" cellpadding="5" cellspacing="0" border="0" align="center">							
							<tr>
							  <td class="EmailHead">View Full PhotoGraph - eParinay.com </td>
					  </tr>
							<tr>
								<td height="10"></td>
							</tr>
							<tr>
								<td align="left"><? if($row['image_1']){?>
                  <a href="#"><img src="uploaded/profile/<?=$row['image_1']?>" border="0" class="image-border1"></a>
                <?}else{?>
                <a href="#"><img src="uploaded/profile/default.jpg" border="0" class="image-border1" ></a>                <?}?></td>
							</tr>
							<tr>
								<td height="10"></td>
							</tr>
						</table>					</td>
				</tr>
		</table>		</td>
	</tr>
		<?} else {?>
		<tr>
			<td height="5">
				<span class="mesg">Oops! Illegal Operation.</span>			</td>
		</tr>
		<?}?>
		<?} else {?>
		<tr>
			<td height="5">
				<span class="mesg">Oops! Illegal Operation.</span>			</td>
		</tr>
		<?}?>
</table>
</body>
</html>
